package com.example.asuper.check.Db;

import com.example.asuper.check.Model.CheckModel;
import com.example.asuper.check.Model.TitleMessageModel;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * Created by Super on 2015/12/27.
 */
public interface CheckDbService {
    public boolean addCheckData(CheckModel model);

    public boolean addCheckData(ArrayList<CheckModel> models);

    public boolean deleteCheckData(String checkCode, String operateType);

    public boolean updateCheckData(String checkCode, String operateType);

    public boolean saveChecked(String checkCode, String operateType, String userName);

    public boolean updateRemark(String checkCode, String Remark);

    public CheckModel getCheckModel(String checkCode);

    public ArrayList<CheckModel> getCheckList(String operateType);

    public ArrayList<CheckModel> getOutList(String operateType);

    public ArrayList<CheckModel> getCheckList(String operateType, String searchType, String searchMsg);

    public List<Map<String, String>> convertToMapList(ArrayList<CheckModel> list);

    public String getOutStr(ArrayList<CheckModel> list);

    public TitleMessageModel getTitleMessage();
}
